package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 我的钱包(Wallet)实体类
 *
 * @author 杨丽辉
 * @since 2021-03-18 15:10:32
 */
@ApiModel("我的钱包")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Wallet implements Serializable {
    private static final long serialVersionUID = 929026568415179791L;
        /**
    *主键
    * 我的钱包id
    * isnull 1
    */
    @ApiModelProperty(value="我的钱包id",position=1)
    @TableId(type = IdType.ASSIGN_ID)
    private String walletId;

    /**
    * 用户id
    * isnull 0
    */        @ApiModelProperty(value="用户id",position=2)
    private String userId;
    /**
    * 猫粮数量（为充值所得）
    * isnull 0
    */        @ApiModelProperty(value="猫粮数量（为充值所得）", position=3)
    private Integer catfoodCount;
    /**
    * 小鱼干数量（平台赠送）
    * isnull 0
    */        @ApiModelProperty(value="小鱼干数量（平台赠送）",position=4)
    private Integer fishCount;
    /**
    * 罐头数量（读者打赏）（作者专属字段）
    * isnull 0
    */        @ApiModelProperty(value="罐头数量（读者打赏）（作者专属字段）",position=5)
    private Integer canCount;
    /**
    * 收入(书籍收入)
    * isnull 0
    */        @ApiModelProperty(value="收入(书籍收入)",position=6)
    private BigDecimal income;
    /**
    * 角色（0：作者；1：普通用户）
    * isnull 0
    */        @ApiModelProperty(value="角色（0：作者；1：普通用户）",position=7)
    private Integer role;
        
    public String getWalletId() {
        return walletId;
    }

    public void setWalletId(String walletId) {
        this.walletId = walletId;
    }
        
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
        
    public Integer getCatfoodCount() {
        return catfoodCount;
    }

    public void setCatfoodCount(Integer catfoodCount) {
        this.catfoodCount = catfoodCount;
    }
        
    public Integer getFishCount() {
        return fishCount;
    }

    public void setFishCount(Integer fishCount) {
        this.fishCount = fishCount;
    }
        
    public Integer getCanCount() {
        return canCount;
    }

    public void setCanCount(Integer canCount) {
        this.canCount = canCount;
    }
        
    public BigDecimal getIncome() {
        return income;
    }

    public void setIncome(BigDecimal income) {
        this.income = income;
    }
        
    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

        @Override
    public String toString() {
        return "{" +
                    " \"walletId\":" + walletId +
                                  " ,\"userId\":" + userId +
                            " ,\"catfoodCount\":" + catfoodCount +
                            " ,\"fishCount\":" + fishCount +
                            " ,\"canCount\":" + canCount +
                            " ,\"income\":" + income +
                            " ,\"role\":" + role +
                  '}';
    }


}
